{include file="include:header" /}
<body class="fixed-sidebar full-height-layout gray-bg" >
    <!-- 导航 -->
    <div class="row wrapper border-bottom white-bg page-heading me-consult">
        <div class="col-sm-4">
            <h2>待回复咨询</h2>
            <ol class="breadcrumb">
                <li><a href="{:url('admin/Index/home')}">主页</a></li>
                <li><a href="#">我的任务</a></li>
                <li><strong>待回复咨询</strong></li>
            </ol>
        </div>

    </div>
    <!-- 内容 -->
   <div class="wrapper wrapper-content">
        <div class="row">
            <!-- 搜索部分 -->
            <div class="col-sm-6">
                <div class="panel panel-default" >
                    <div class="panel-heading">快速查询</div>
                    <div class="panel-body">
                        <form class="form-horizontal search-form" action="" method="get" id="transmit">
                            <div class="form-group">
                                <label class="col-xs-2 control-label">咨询时间</label>
                                <div class="col-xs-10 ">
                                    <input  type="text" name="stime"  size="18" value="{$post.stime?$post.stime:''}" placeholder="开始" class=" form-control scinput" style="width: 140px;" onclick="laydate({istime: true, format: 'YYYY-MM-DD hh:mm:ss'})" />&nbsp;&nbsp;
                                    <br/><input type="text" name="otime" size="18" value="{$post.otime?$post.otime:''}" placeholder="结束" class=" form-control scinput" style="width: 140px;" onclick="laydate({istime: true, format: 'YYYY-MM-DD hh:mm:ss'})" />
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            <a href="javascript:;" ><input type="button" value="搜索" class="search-btn mg-right-10 col-xs-offset-4 btn btn-primary consult-data" /></a>
                            &nbsp;&nbsp;
                        </form>
                    </div>
                </div>
            </div>
            
        </div>
            <table class="table table-bordered white-bg">
                <thead>
                    <tr>
                        <th>咨询ID</th>
                        <th>咨询用户</th>
                        <th style="width: 200px;">咨询标题与类型</th>
                        <th style="width: 200px;">咨询问题</th>
                        <th style="width: 200px;">再次咨询</th>
                        <th>咨询时间</th>
                        <th>操作</th>
                    </tr>
                </thead>
                <tbody>
                   {volist name="list" id="v"}
                   <tr>
                        <td>{$v['consult_push_id']}</td>
                        <td><span class="btn btn-xs btn-primary">{$v['u_nickname']?$v['u_nickname']:$v['u_phone']}</span></td>
                        <td>标题：{$v['ct_title']}<br/><br/>类型：<span class="btn btn-xs btn-success">{$v['ct_name']}</span></td>
                        <td>{$v['ct_details']}</td>
                        <td>{$v['fcr_details']}</td>
                        <td>{$v['cp_addtims']}</td>
                        <td>
                            {if condition="$v['cp_state'] eq 1"}
                                <span class="btn btn-xs btn-danger me-reply" data-toggle="modal" data-target="#myModal" value="{$v['consult_id']}">待回复</span>
                            {else /}
                             <span class="btn btn-xs btn-outline">已回复</span>
                            {/if}
						</td>
                    </tr> 
                 {/volist}
                </tbody>
            </table>
            <div class="btn-group">{$page}</div>
    </div>

    <!-- 模态窗口 -->
    <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-hidden="true">
        <div class="modal-dialog">
            <div class="modal-content animated">

                <!-- 物流-->
                <div id="logistics-s">
                    <form method="get" class="valid-form form-horizontal order-send" onsubmit="return false;">
                        <div class="modal-header">
                            <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button>
                            <h4 class="modal-title">咨询问题:<p id="ct_details" style="color: red;"></p></h4>

                        </div>
                        <div class="modal-body">
                            <div class="form-group">
                                <label class="col-sm-3 control-label">回复内容：</label>
                                <div class="col-sm-6 vcheck-abs">
                                    <textarea cols="8" rows="8" type="text" class="form-control" name="fcr_details"  placeholder="回复内容" datatype="*" errormsg="请填写回复内容" sucmsg=" " >{$data['a_comment']?$data['a_comment']:''}</textarea>
                                </div>
                            </div>
                        </div>

                        <input type="hidden" name="consult_id" value=""/>

                        <div class="modal-footer">
                            <button type="button" class="btn btn-white writ-type-remove" data-dismiss="modal">关闭</button>
                            <button type="button" class="submit btn btn-primary consul-me-request" >提交回复</button>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</body>
</html>
{include file="include:js" /}
